// Copyright (C) 2021 Focus Media Holding Ltd. All Rights Reserved.

package cn.focusmedia.central.${appCode}.tunnel.mapper${dataSource}.${modelPackName};

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.focusmedia.central.${appCode}.tunnel.dataobject.${modelPackName}.${className}DO;
import cn.focusmedia.fdf.common.mapper.BaseQueryMapper;

/**
* ${className}QueryMapper
*
* @author ${author}
* @since  ${date}
**/
@Repository
public interface ${className}QueryMapper extends BaseQueryMapper<${className}DO> {

    /**
    * 通用查询 pageSize=0时不分页
    *
    * @param query    查询条件
    * @param pageNum  请求页
    * @param pageSize 页大小
    * @return List
    **/
    List<${className}DO> query(@Param("query") ${className}DO query,
            @Param("pageNum") Integer pageNum,
            @Param("pageSize") Integer pageSize);

    /**
    * 通用count
    *
    * @param query 查询条件
    * @return int
    **/
    @Override
    Integer count(@Param("query") ${className}DO query);

}